package br.com.furb.trabalhoFinal.model;

import java.io.Serializable;

public class Cargo implements Serializable{
	
	private int codigo;
        private double salarioBase;
	private String descricaoCargo;
	private int cargaHoraria;
	
	public Cargo(int codigo, double salarioBase, String descricaoCargo, int cargaHoraria) {
		super();
                this.codigo = codigo;
		this.salarioBase = salarioBase;
		this.descricaoCargo = descricaoCargo;
		this.cargaHoraria = cargaHoraria;
	}

  public Cargo() {
    super();
  }
	
	public double getSalarioBase() {
		return salarioBase;
	}
	
	public void setSalarioBase(double salarioBase) {
		this.salarioBase = salarioBase;
	}
	
	public String getDescricaoCargo() {
		return descricaoCargo;
	}
	
	public void setDescricaoCargo(String descricaoCargo) {
		this.descricaoCargo = descricaoCargo;
	}
	
	public int getCargaHoraria() {
		return cargaHoraria;
	}
	
	public void setCargaHoraria(int cargaHoraria) {
		this.cargaHoraria = cargaHoraria;
	}

  @Override
  public boolean equals(Object obj){
    if(!(obj instanceof Cargo)){
      return false;
    }
    Cargo other = (Cargo) obj;
    Boolean ret;
    ret = getCargaHoraria() == other.getCargaHoraria();
    ret &= getDescricaoCargo().equals(other.getDescricaoCargo());
    ret &= getSalarioBase() == other.getSalarioBase();
    ret &= getCodigo() == other.getCodigo();
    return ret;
  }

  public int getCodigo() {
    return codigo;
  }

  public void setCodigo(int codigo) {
    this.codigo = codigo;
  }
}